package com.example.day13;

import java.util.Scanner;

public class Demo{
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入分数：");
        int score =sc.nextInt();
        Teacher t=new Teacher();
        try{
            t.checkScore(score);
        }catch(ScoreException e){
            System.out.println(e.getMessage());
        }
        
    }
}
